package ngames.com.sushitv.Fragment;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import ngames.com.sushitv.AppApplication;
import ngames.com.sushitv.R;
import ngames.com.sushitv.action.SearchRequestAction;

/**
 * A simple {@link Fragment} subclass.
 */
public class SRAnimeFragment extends Fragment {
    private View view;
    private SearchRequestAction searchRequestAction;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view=inflater.inflate(R.layout.fragment_sranime, container, false);
        if (!AppApplication.getSearchRequestType().equals("2")) {
            searchRequestAction = new SearchRequestAction(getActivity(), view, 1, "anime", AppApplication.getSearchKeyWord(),"0");
            searchRequestAction.onCreate();
        }
        return view;
    }


}
